import request from '@/utils/request'

// 公告反馈相关接口
export function getFeedbackPage(announcementId, params) {
  return request({
    url: `/announcement-feedbacks/page/${announcementId}`,
    method: 'get',
    params
  })
}

export function submitFeedback(data) {
  return request({
    url: '/announcement-feedbacks',
    method: 'post',
    data
  })
}

export function getFeedbackStats(announcementId) {
  return request({
    url: `/announcement-feedbacks/stats/${announcementId}`,
    method: 'get'
  })
}

export function hasSubmittedFeedback(announcementId) {
  return request({
    url: `/announcement-feedbacks/check/${announcementId}`,
    method: 'get'
  })
} 